package jdkproxy;

import java.lang.reflect.Proxy;

/**
 * @author: TanJingyu
 * @create: 2022-09-07 10:24
 **/
public class ProxyTest {
    public static void main(String[] args) {
        UserFeign userFeign = (UserFeign) Proxy.newProxyInstance(ProxyTest.class.getClassLoader(), new Class[]{UserFeign.class}, new UserFeignHandler());
        System.out.println(userFeign.getName());
        userFeign.insert();
    }
}

    